eieio-core.el: Always put a parent in the parents of a class
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 7 Mar 2024 22:45:41 +0000 (17:45 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 8 Mar 2024 07:04:59 +0000 (02:04 -0500)
commit945af4d9d11192d262f4fabbc66ee83f5beefc86
tree9c96afcde0a495d5b6f42cd6b70a30216754ec1f
parent7c127fc965fbe781141a6bccbe0b620dc7862b1d
eieio-core.el: Always put a parent in the parents of a class

* lisp/emacs-lisp/eieio-core.el (eieio-defclass-internal):
Always put a parent in the `parents` slot of the class.

* lisp/emacs-lisp/eieio.el (eieio-class-parents): Remove the
`eieio-default-superclass` if it's the only parent.
(child-of-class-p): Handle all classes in the parents.
(eieio-default-superclass): Adjust docstring.
lisp/emacs-lisp/eieio-core.el
lisp/emacs-lisp/eieio.el